home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cgazv5n5.arc
/
LIST8.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-23
|
617b
|
20 lines
/*---------------------------------------- Listing 8 ------
* Demonstration of __FILE__ and _LINE__
* See Listing 1 for copyright notice.
*-------------------------------------------------------*/
#include <stdio.h>
void main ( void );
void main()
{
/*--------------------------------------
* This will be a fairly dopey program,
* doing nothing but showing off module
* name and line numbers.
*------------------------------------*/
printf ( "We're in module %s ... ", __FILE__ );
printf ( "at line number %d\n", __LINE__ );
printf ( "Neat, huh?!\n" );
}